﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnvDTE;

namespace SmartStringResources.Dte
{
	public static class DteExtensions
	{
		public static Project GetProject(this DTE dte)
		{
			if (dte == null)
				return null;

			return dte.ActiveDocument.ProjectItem.ContainingProject;
		}
	}
}
